<template>
  <view class="container">
    <view class="header_txt">
      <view class="back"
            @click="backHandler">
        <image src="/static/img/back3.png"></image>
      </view>
      <view class="title"> 收人明细 </view>
    </view>
    <view class="content">
      <block v-if="Info.length==0">
        <view class="image_box">
          <image class="imageph flexs "
                 src="../../static/image/srmx_img_k@2x.png"
                 mode=""></image>
        </view>
        <view class="text-center text_no">暂无更多内容</view>
      </block>
      <block v-else>
        <view class="list_box">
          <view class="list_box_item"
                v-for="(item,index) in Info"
                :key='index'>
            <view class="list_box_item_l">
              <!-- 1微信，2支付宝 -->

              <view class="list_item_top">{{item.note}}</view>
              <!-- <view class="list_item_top" v-if='item.type ==2'>支付宝充值</view> -->
              <view class="list_item_time">{{item.createtime}}</view>
            </view>
            <view class="list_box_item_r">￥{{item.money}}</view>
          </view>
        </view>
      </block>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      Info: [],
      page: 1,
      limit: 10
    }
  },
  onLoad() {
    this.getInWater()
  },
  methods: {
    backHandler() {
      uni.navigateBack({
        delta: 1
      })
    },
    //zhang/wallet/get_in_water
    async getInWater() {
      const { data } = await this.$http.post('zhang/wallet/get_in_water', { page: 1, pageSize: 10 })
      console.log(data)
      this.Info = data.data.data
    }
  }
}
</script>

<style lang="scss">
/* 头部区域 */
.header_txt {
  width: 750rpx;
  overflow: hidden;
  height: 88rpx;
  line-height: 88rpx;
  background-color: #fff;

  .back {
    position: absolute;
    top: 14rpx;
    left: 14rpx;
    width: 60rpx;
    height: 60rpx;
    display: flex;
    justify-content: center;
    align-items: center;
    image {
      width: 48rpx;
      height: 48rpx;
    }
  }

  .right {
    position: absolute;
    top: 14rpx;
    right: 14rpx;
    width: 60rpx;
    height: 60rpx;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .title {
    text-align: center;
    height: 88rpx;
    // margin-top: -20rpx;
    // line-height: 88rpx;
    font-size: 32rpx;
    font-weight: bold;
  }
}
.content {
  width: 100%;
  height: 100%;
  /* overflow: hidden; */
  background-color: #f5f5f5;
}
.image_box {
  overflow: hidden;
  width: 750rpx;
  text-align: center;
}
.imageph {
  margin: 0 auto;
  width: 354rpx;
  height: 253rpx;
  margin-top: 360rpx;
}
.text_no {
  text-align: center;
  color: #a6a6a6;
  font-size: 30rpx;
  margin-top: 40rpx;
}
.list_box {
  width: 100%;
  /* height: calc(100% - 20rpx); */
  overflow-y: auto;
  background-color: #ffffff;
  margin-top: 20rpx;
}
.list_box_item {
  width: 92%;
  height: 100rpx;
  background-color: #ffffff;
  margin: auto;
  /* padding: 0rpx 30rpx; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1rpx solid #f5f5f5;
}
.list_item_top {
  font-size: 28rpx;
  font-weight: 500;
  color: #343434;
}
.list_item_time {
  font-size: 24rpx;
  font-weight: 500;
  color: #999999;
}
.list_box_item_r {
  font-size: 34rpx;
  font-family: PingFang SC;
  font-weight: bold;
  color: #343434;
}
.kong {
  width: 100%;
  height: 20rpx;
  background-color: #f5f5f5;
}
</style>
